<html>
    <head>
        <title></title>
        <meta http-equiv="X-UA-Compatible" content="IE=9" />
        <link href="style3.css" rel="stylesheet" type="text/css" />
    </head>


    <?
    $message_id = $_GET['message_id'];
    $conn = @mysql_connect('localhost', 'root', '') or die(mysql_error());
    mysql_select_db("mydb") or die(mysql_error());

    $result = mysql_query("SELECT m.first_name, m.last_name, ms.subject, ms.message , ms.date_sent FROM
         member_message_member s , messages ms , member m
         Where  s.message_id=ms.message_id AND m.member_id=s.member_id1
            AND ms.message_id='$message_id'") or die(mysql_error());

    $row = mysql_fetch_assoc($result);
    echo "<fieldset>";
    echo "<h3 align='center'>{$row['subject']}</h3>";
    echo "<legend>Sent by<strong> {$row['first_name']} {$row['last_name']}</strong> at {$row['date_sent']}</legend>";
    echo "<textarea rows='10' cols='175' readonly=true>{$row['message']}</textarea>";
    echo "</fieldset>";




    